//
//  YLAlertView.h
//  yuLink
//
//  Created by 孙强 on 2021/4/8.
//

#import <UIKit/UIKit.h>
#import <RACSignal.h>
#import <UIControl+RACSignalSupport.h>

NS_ASSUME_NONNULL_BEGIN

@interface YLAlertView : UIView

/** <#注释#> */
@property (nonatomic, assign) BOOL autoDismiss;
/** <#注释#> */
@property (nonatomic, strong) UIView *contentView;
/** <#注释#> */
@property (nonatomic, strong) UILabel *titleLabel;
/** <#注释#> */
@property (nonatomic, strong) UILabel *messageLabel;
/** <#注释#> */
@property (nonatomic, strong) UIButton *cancelBtn;
/** <#注释#> */
@property (nonatomic, strong) UIButton *destructionBtn;

+ (YLAlertView *)alertTitle:(NSString *)title
                 cancelAction:(void(^)(UIButton *sender))cancelBlock;

+ (YLAlertView *)alertTitle:(NSString *)title
                      message:(NSString *)message
                 cancelAction:(void(^)(UIButton *sender))cancelBlock;

+ (YLAlertView *)alertTitle:(NSString *)title
                      message:(NSString *)message
                 cancelAction:(void(^)(UIButton *sender))cancelBlock
                   sureAction:(void(^)(UIButton *sender))sureBlock;

+ (YLAlertView *)alertTitle:(NSString *)title
                      message:(NSString *)message
                 cancelAction:(void(^)(UIButton *sender))cancelBlock
            destructionAction:(void(^)(UIButton *sender))destructionBlock;

+ (YLAlertView *)alertTitle:(NSString *)title
                      message:(NSString *)message
            destructionAction:(void(^)(UIButton *sender))destructionBlock;

+ (YLAlertView *)alertTitle:(NSString *)title
                      message:(NSString *)message
                 cancelAction:(void (^)(UIButton *sender))cancelBlock
            destructionAction:(void (^)(UIButton *sender))destructionBlock
                dismissAction:(void (^)(UIButton *sender))dismissActionBlock;

- (void)show;

- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
